package de.tewdreyer.android.quaffed;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class Quaffed extends TabActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        TabHost tabHost = getTabHost();
        TabHost.TabSpec spec;
        Intent intent;

        intent = new Intent().setClass(getApplicationContext(), ShowGraph.class);
        spec = tabHost.newTabSpec("showGraph");
        spec.setContent(intent);
        spec.setIndicator("Show Graph");
        tabHost.addTab(spec);

        intent = new Intent().setClass(getApplicationContext(), GetMeal.class);
        spec = tabHost.newTabSpec("getMeal");
        spec.setContent(intent);
        spec.setIndicator("Get Meal");
        tabHost.addTab(spec);
    }


}
